import{d as V,a9 as v,b as p,e as f,u as t,B as y,o as i,F as $,f as o,w as n,c4 as b,z as c,p as _,s as g,c as U}from"./CtbHscGXagutd.js";import{b as k,_ as C,a as B,c as w}from"./D71eOpeV18pg8p.js";import{_ as I}from"./Cxks10UZ1E6jjF.js";import{_ as m}from"./DxtVL4raPQMM7.js";import"./CtybWkkwagutd.js";import"./C3s2euIYc68oV.js";const E={key:0,class:"app-pay-right"},F=V({__name:"app-pay-right",props:{editableItem:{}},setup(s){const r=s,e=v(()=>r.editableItem);return(d,l)=>t(y).hideEditRight?f("",!0):(i(),p("div",E,[e.value?(i(),p($,{key:0},[o(t(m),{title:d.$t("document.labelContact")},{default:n(({id:a})=>[o(t(k),{modelValue:e.value.contact,"onUpdate:modelValue":l[0]||(l[0]=u=>e.value.contact=u)},null,8,["modelValue"])]),_:1},8,["title"]),o(t(m),{title:d.$t("document.labelDate")},{default:n(({id:a})=>[o(t(b),{id:a,modelValue:e.value.date,"onUpdate:modelValue":l[1]||(l[1]=u=>e.value.date=u)},null,8,["id","modelValue"])]),_:1},8,["title"]),o(t(m),{title:d.$t("document.labelAmount")},{default:n(({id:a})=>[o(C,{id:a,modelValue:e.value.amount,"onUpdate:modelValue":l[2]||(l[2]=u=>e.value.amount=u),currency:e.value.currency,"onUpdate:currency":l[3]||(l[3]=u=>e.value.currency=u),"currency-editable":""},null,8,["id","modelValue","currency"])]),_:1},8,["title"]),o(t(m),{title:d.$t("document.labelTitle")},{default:n(({id:a})=>[o(t(I),{id:a,modelValue:e.value.title,"onUpdate:modelValue":l[4]||(l[4]=u=>e.value.title=u),class:"full"},null,8,["id","modelValue"])]),_:1},8,["title"]),o(t(m),{title:d.$t("document.labelCategory")},{default:n(({id:a})=>[o(t(B),{modelValue:e.value.category,"onUpdate:modelValue":l[5]||(l[5]=u=>e.value.category=u)},null,8,["modelValue"])]),_:1},8,["title"]),o(t(m),{title:d.$t("document.labelTags")},{default:n(({id:a})=>[o(t(w),{id:a,modelValue:e.value.tags,"onUpdate:modelValue":l[6]||(l[6]=u=>e.value.tags=u)},null,8,["id","modelValue"])]),_:1},8,["title"]),o(t(c),{modelValue:e.value.star,"onUpdate:modelValue":l[7]||(l[7]=a=>e.value.star=a),title:d.$t("document.labelStar")},null,8,["modelValue","title"]),o(t(c),{modelValue:e.value.confirmed,"onUpdate:modelValue":l[8]||(l[8]=a=>e.value.confirmed=a),title:d.$t("document.labelConfirmed")},null,8,["modelValue","title"])],64)):f("",!0)]))}}),N={class:"app-pay"},j=V({__name:"app-pay",props:{id:{}},setup(s){const r=s;_("app-pay");const e=v(l=>r.id),d=g.workspace?.useReactive(e);return(l,a)=>(i(),p("div",N,[t(d)?(i(),U(F,{key:0,"editable-item":t(d)},null,8,["editable-item"])):f("",!0)]))}});export{j as default};